package com.wzy.alllearning.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import io.sentry.Sentry;

@RestController
public class TestController
{
	@GetMapping("/test")
	public String test()
	{
		try
		{
			throw new Exception("This is a test.");
		}
		catch (Exception e)
		{
			Sentry.captureException(e);
		}
		return "Test";
	}
}
